import { createSuitApp, store } from '@suit/front-framework-v3'
import { subApp } from './index'
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'
import './style/base.scss'
import SuitComponents from '@suit/front-base-components-v3'

// 启动
async function setup() {
  const app = await createSuitApp({
    manifestURL: './manifest.json',
    subApps: [subApp],
  })

  app.use(VXETable)
  app.use(SuitComponents, {
    getDictMap: () => store.useDictStore().dictMap,
    store,
  })
  app.mount(document.getElementById('app')!)
}

setup()
